<?php

assets::instance()
	->priority(20000)
	// radiance injections
	->js_inline(""
		. "window.rad = window.rad || {};\n"
		. "window.rad.settings = window.rad.settings || {};\n"
		. "window.rad.settings.baseurl = '" . base_url() . "';\n"
		. "window.rad.settings.roles = '" . $roles . "';\n"
		)
	->js_domready(""
		. "try { jQuery.datepicker.setDefaults($.datepicker.regional['ru']); } catch(e) {};\n"
		. "try { MooTools.lang.setLanguage('ru-RU-unicode'); } catch(e) {};\n"
		. "try { rad.roles.initialize(); } catch(e) {};\n"
		);
